package cn.gson.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the EMP_AND_CHARACTER database table.
 * 
 */
@Entity
@Table(name="EMP_AND_CHARACTER")
@NamedQuery(name="EmpAndCharacter.findAll", query="SELECT e FROM EmpAndCharacter e")
public class EmpAndCharacter implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="EC_ID")
	private long ecId;

	@Column(name="\"level\"")
	private String level;

	//bi-directional many-to-one association to EmpCharacter
	@ManyToOne
	@JoinColumn(name="C_ID")
	private EmpCharacter empCharacter;

	//bi-directional many-to-one association to EmpInfomation
	@ManyToOne
	@JoinColumn(name="EMP_ID")
	private EmpInfomation empInfomation;

	public EmpAndCharacter() {
	}

	public long getEcId() {
		return this.ecId;
	}

	public void setEcId(long ecId) {
		this.ecId = ecId;
	}

	public String getLevel() {
		return this.level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public EmpCharacter getEmpCharacter() {
		return this.empCharacter;
	}

	public void setEmpCharacter(EmpCharacter empCharacter) {
		this.empCharacter = empCharacter;
	}

	public EmpInfomation getEmpInfomation() {
		return this.empInfomation;
	}

	public void setEmpInfomation(EmpInfomation empInfomation) {
		this.empInfomation = empInfomation;
	}

}